All Questions
Tagged with asp.net-mvcmodel-view-controller
4,280 questions
0votes
1answer
39views
An unhandled exception occurred while processing the request when Scaffolding an Entity
To give you some context: I am currently working on a simple CRUD Scaffolded MVC table. And I am having trouble Implementing the Relationships. Simple independent tables work just fine as is just ...
2votes
2answers
61views
How to get route value of action attribute in controller?
I have the action method defined like below: [Route("example-page")] public ActionResult MyAction() { // I want to use "example-page" in here, like a query parameter. ...
0votes
1answer
55views
How to dynamically add and remove multiple forms for the same model in ASP.NET MVC?
I am building a monthly budget app using ASP.NET MVC, and I want to allow users to create multiple income entries at the same time (maximum of 5 forms on larger screens and 3 on smaller screens). ...
1vote
0answers
63views
Unable to execute Action in another controller using AJAX call
I am trying to execute code in my MVC application that in my web application, a user when logging in, will have to verify their phone number first before they can click on any menus in my application. ...
0votes
0answers
51views
MSB3030: Microsoft.CodeAnalysis.Features.resources.dll - it was not found
After the latest update of visual studio 2022 I got several problems. The first one, I couldn't install new nuget package, now different application is throwing error. File: Microsoft.Common....
1vote
2answers
144views
Saving the changes with AddSync
I'm a beginner in c# and i am having a problem in the code, i am using the Edit method as a Index, so i'm using the AddAsync, but when i run the code it just skips the line, and also its not saving. ...
-1votes
1answer
71views
Unable to send the List of model data to a view using asp.net mvc
I have a List<string> stored in local storage and I'm getting those values using javascript and sending it to a POST method of my controller using an AJAX call. In the controller of the POST ...
0votes
0answers
66views
403 - Forbidden: Access is denied. On uploading CSV file or data more then 437 rows. ASP.NET MVC C#
Why am I encountering a "403 - Forbidden: Access is denied" error when attempting to upload a CSV file or data containing more than 437 rows in my ASP.NET MVC C# application? The website is ...
-1votes
1answer
50views
i want text of label when it in datalist
in .net , i have a problem . i want the text of label in datalist and i cant use id because its in datalist and its id is not available in c# or js .i don't can use for to find lable in datalist my ...
0votes
0answers
83views
MVC .NET Core Localization Dynamic
I have added a multi-language option to my site using MVC .NET Core localization. However, I believe this will be problematic in the dynamic areas of the site. I don't want to resort to file ...
0votes
1answer
51views
How to call Html get method from js
I have an user table. When I want to edit my user's infos, I want to open the update page as a popup. Right now I can open the popup but when I try to call HttpGet update method to get user's infos, ...
0votes
0answers
32views
I Can't sign in with HtmlContext.Session in .Net 8.0
I can not sign in with using htmlcontext.session, it redirects me again in log in page. I have searched many articles in online but nothing solved my problem and I do not want to use JWT Token for ...
0votes
0answers
55views
ASP.NET Core 8 : Type on ViewDataDictionary
I have this problem : InvalidOperationException: The model item passed into the ViewDataDictionary is of type 'System.Collections.Generic.List`1[BookingPortal.Models.ViewModels.WarehouseViewModel]', ...
0votes
1answer
335views
Multiple models in one view ASP.net core mvc
Good day. I encountered a problem while developing an asp.net core mvc application. The fact is that I have a Dashboard page for which the data is taken from the @model DashboardPageViewModel. Also, ...
1vote
1answer
159views
Register all IMediatR classes
Is there any form to avoid registering all the assemblies that implement IMediator service? I try using these options but none of them helps me: builder.Services.AddMediatR(Assembly....